<?php
session_start();
$_SESSION['baseurl']= base_url();
$_SESSION['upanh']=$this->session->userdata('upanh');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?php if($setting->title){echo $setting->title;}?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="<?php echo base_url();?>skin/admin/css/css.css" rel="stylesheet" type="text/css" />
<link href="<?php echo base_url();?>skin/admin/css/menu.css" rel="stylesheet" type="text/css" />
<script src="<?php echo base_url();?>skin/admin/js/jquery-1.8.2.min.js" type="text/javascript"></script>
<!-- upanh-->
<script type="text/javascript">
function openKCFinder(field) {
    window.KCFinder = {
        callBack: function(url) {
            field.value = url;
            window.KCFinder = null;
        }
    };
    window.open('<?php echo base_url();?>ckeditor/up_file/browse.php?type=files&dir=files/public', 'kcfinder_textbox',
        'status=0, toolbar=0, location=0, menubar=0, directories=0, ' +
        'resizable=1, scrollbars=0, width=800, height=600'
    );
}

</script>
 <!--end fck-->
<!-- phong to anh-->
<script type="text/javascript" src="<?php echo base_url();?>skin/admin/js/tooltip.pack.js"></script>
<script type="text/javascript">
$(function() {
    $('.tonus').tooltip({
    	delay: 0,
    	showURL: false,
    	bodyHandler: function() {
    		return $("<img/>").attr("src", this.src);
    	}
    });
});
</script>
<!-- END PHONG TO ANH -->

<script type="text/javascript" src="<?php echo base_url();?>ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>ckeditor/ckfinder/ckfinder.js"></script>

  <!--ckfinder upload-->
                                  <script type="text/javascript">
                                  function BrowseServer()                        {
                                    	var finder = new CKFinder();
                                    	finder.basePath = '../';	// The path for the installation of CKFinder (default = "/ckfinder/").
                                    	finder.selectActionFunction = SetFileField;
                                    	finder.popup();                                
                                    	// It can also be done in a single line, calling the "static"
                                    	// popup( basePath, width, height, selectFunction ) function:
                                    	// CKFinder.popup( '../', null, null, SetFileField ) ;
                                    	//
                                    	// The "popup" function can also accept an object as the only argument.
                                    	// CKFinder.popup( { basePath : '../', selectActionFunction : SetFileField } ) ;
                                    }
                                    
                                    // This is a sample function which is called when a file is selected in CKFinder.
                                    function SetFileField( fileUrl )
                                    {
                                    	document.getElementById( 'xFilePath' ).value = fileUrl;
                                    }
                                    
                                    	</script>
                                 <!--ckfinder-->  
</head>
<div id="noidung_admin">
<div id="border-top"><h1>dichvusieure.vn</h1></div>
<div id="heading_menu">
<?php
if($this->session->userdata('logedin')){
            if($this->session->userdata('id')==1){
                $this->session->set_userdata('upanh',1);//nho bo khi hoan thanh
                include('menu.php');
            }
        }
 
 ?>
<div id=""></div>
<div id="content_box">
    <div class="noidungtin">
    
    <?php 
    if(!empty($page)){
        echo $page;            
            
    };?>
    
    </div>    
</div>


<br /><b>
Dichvusieure.vn
<br /></b>
</div><!-- dong div conten-->